﻿<Window
    x:Class="ColorWheel.Win.Demo.MainWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="MainWindow"
    Height="1000"
    Width="800">
    
    <Grid
        x:Name="LayoutRoot"
        Background="White">

        <Grid.RowDefinitions>
            <RowDefinition
                Height="*" />
            <RowDefinition
                Height="Auto" />
        </Grid.RowDefinitions>

        <Grid.ColumnDefinitions>
            <ColumnDefinition
                Width="*">
            </ColumnDefinition>
            <ColumnDefinition
                Width="Auto">
            </ColumnDefinition>
        </Grid.ColumnDefinitions>

        <Grid
            Background="{Binding PageBackground}"
            Grid.Row="0"
            Grid.Column="0"
            Grid.ColumnSpan="2">

            <TextBlock
                Foreground="{Binding PageForeground}"
                FontSize="14"
                TextWrapping="Wrap">
                
                <LineBreak />
                
                <Run
                    Foreground="{Binding PageForegroundTitle}"
                    FontSize="16"
                    FontWeight="Bold">
                    
                    In short...
                    
                </Run>
                
                <LineBreak />
                <LineBreak />
                
                <Run>
                    The Fairly Random text generator generates realistic seeming random text from any given source text. To do this it 
                    analyzes a source text that you provide. It measures overall word length and frequency, and lets you review the 
                    individual words of the original text. It also immediately creates a random text based on your source text. If you 
                    want, you can then use the various options to tell the text generator which of the words to use (or not to use) and 
                    what the resulting text should look like 
                </Run>
                
                <Run
                    Foreground="{Binding PageForegroundWarning}">(in terms of sentences, paragraphs, headers et cetera).</Run>
                
                <LineBreak />
                <LineBreak />

                <Run
                    TextDecorations="Underline"
                    Foreground="{Binding PageForegroundLink}">In other words, your input </Run>
                
                <Run>
                    and settings determine the flavor of the output, which is, as such, a rewrite of your source text into not really 
                    random text.
                </Run>
                
                <Run
                    TextDecorations="Underline"
                    Foreground="{Binding PageForegroundLink}">not really random text.</Run>
                
                <LineBreak />
                <LineBreak />
                
                <Run
                    Foreground="{Binding PageForegroundTitle}"
                    FontSize="16"
                    FontWeight="Bold">
                    
                    Dummy text, fake text, placeholder text... why make it look nice?
                    
                </Run> 
                
                <LineBreak />
                <LineBreak />
                
                <Run
                    TextDecorations="Underline"
                    Foreground="{Binding PageForegroundLink}">While random text is mostly intended Run to just fill </Run>
                
                <Run>
                    up the blank spaces, for many practical purposes you essentially want 
                    the look and feel of the dummy text you are going to use to be as close as possible to the real content that will eventually 
                    replace it. Considering that different language, writing style and substance of text result in an endless variety of different 
                    word combinations and visual impressions that a piece of text can have and make, 
                    it is always a plus to have it use the right kind of words and look like the final product as much as possible. Whether 
                    you are working in the technical, lifestyle, news or fantasy business, you will always impress and fascinate by having 
                    your concept pieces look and feel like they are the real technical, lifestyle, news or fantasy deal... to name but a few 
                    examples.
                </Run>                    
                
                <LineBreak />
                <LineBreak />
                
                <Run
                    Foreground="{Binding PageForegroundTitle}"
                    FontSize="16"
                    FontWeight="Bold">
                    
                    On a sidenote...
                    
                </Run>
                
                <LineBreak />
                <LineBreak />
                
                <Run
                    TextDecorations="Underline"
                    Foreground="{Binding PageForegroundLink}">You might be surprised how much mood </Run>
                
                <Run>
                    or athmosphere even a totally random text can carry, while a fairly random text does this better ofcourse ;-). Granted, when 
                    you really get down to reading it, there won't be much meaningful coherence in any of it, but... regardless of the fact that 
                    random text makes no real sense, 
                </Run>
                <Run
                    Foreground="{Binding PageForegroundWarning}"> it does automatically get your mind working.</Run>
                
                <LineBreak />
                <LineBreak />    
                
                <Run>
                    Your brain will in fact try hard to understand it anyway, because out of habit it assumes that words in a text should mean something, 
                    or at least anything but nothing! You see, the brain launches itself into ‘I-must-understand-this’ mode when confronted with random 
                    text, trying every possible way in which it could still extract some sensible meaning from those random words, much like trying 
                    to solve a puzzle. Just try it. Reading random text for a few minutes, word for word, is very tiring. On the upside, reading a 
                    little bit, or just skimming over a random text like most people will do, makes your mind strongly touch upon a certain global 
                    idea of “subject matter” without its focus getting diverted by any actual meaningful details, while what the random text does 
                    do is automatically fill the readers mind with questions at the same time. The more your strongly your source text is written 
                    on a specific subject and uses a specific group of words, the stronger this effect will be. And this is exactly what you want 
                    your Fairly Random text to accomplish: it is there to provide a general mood, to hook interest and to look like the real thing.
                </Run>
                
                <LineBreak />
                <LineBreak />

            </TextBlock>

        </Grid>

        <Grid
            Grid.Row="1"
            Grid.Column="0"
            Grid.ColumnSpan="2"
            Background="{Binding Source={StaticResource ColorManager}, Path=[Background-Brush]}">

            <Button
                HorizontalAlignment="Right"
                Margin="10 3 10 3"
                Padding="5 3 5 3"
                Click="Button_Click"
                Content="Change Palette">
            </Button>

        </Grid>

    </Grid>
</Window>
